/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cong.javadanang.model.dao;

import cong.javadanang.model.entity.Answer;
import java.util.List;

/**
 *
 * @author Pham
 */
public interface AnswerDAO {

    Answer getAnswerById(int answerId);

    List<Answer> getAllAnswers();

    boolean createAnswer(Answer answer);
    boolean updateAnswer(Answer answer);
    boolean deleteAnswer(Answer answer);
    boolean removeAnswer(Answer answer);
    boolean restoreAnswer(Answer answer);
}
